package ZuoYe18;

public class HomeWork2 {

	public static void main(String[] args) {
		int[] score = {56,89,32,79,64,82};
		int max = score [0];
		int min = score [0];
		for (int i = 0 ;i < score.length; i++){
			if (max < score[i]) {
				max = score[i];
				
			}
			if ( min > score[i]) {
				min = score[i];
			}
		}
		System.out.println(max);
		System.out.println(min);

	}

}
